package com.youngjun.user.pojo.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.youngjun.common.pojo.vo.support.BaseVO;

/**
 * @author youngjun
 */
public class RegionVO extends BaseVO<RegionVO> {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private String name;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;

    private Boolean isLeaf;

    public Long getId() {
        return id;
    }

    public RegionVO setId(Long id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public RegionVO setName(String name) {
        this.name = name;
        return this;
    }

    public Long getParentId() {
        return parentId;
    }

    public RegionVO setParentId(Long parentId) {
        this.parentId = parentId;
        return this;
    }

    public Boolean getLeaf() {
        return isLeaf;
    }

    public RegionVO setLeaf(Boolean leaf) {
        isLeaf = leaf;
        return this;
    }
}
